package hn.cch.mybatis.boot.controller;

import hn.cch.mybatis.boot.mapper.ScriptMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping(value = "script")
@RestController
public class ScriptController {

    @Autowired
    private ScriptMapper scriptMapper;


    @PostMapping(value = "execute")
    public String execute(String script){
        return scriptMapper.execute(script);
    }

}
